package com.gxa.jjty.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author asus
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
@Table(name = "healthy")
public class Healthy implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @ApiModelProperty(value = "ID")
  private Long id;


  @ApiModelProperty(value = "心率")
  @NotNull(message = "心率不能为空")
  private Double heartRate;

  @ApiModelProperty(value = "心率表现")
  private String heartRateExpre;

  @ApiModelProperty(value = "血糖")
  @NotNull(message = "血糖不能为空")
  private Double bloodGlucose;

  @ApiModelProperty(value = "血糖表现")
  private String bloodGlucoseExpre;

  @ApiModelProperty(value = "血氧")
  @NotNull(message = "血氧不能为空")
  private Double bloodOxygen;

  @ApiModelProperty(value = "血氧表现")
  private String bloodOxygenExpre;

  @ApiModelProperty(value = "血脂")
  @NotNull(message = "血脂不能为空")
  private Double bloodFat;

  @ApiModelProperty(value = "血脂表现")
  private String bloodFatExpre;

  @ApiModelProperty(value = "血压")
  @NotNull(message = "血压不能为空")
  private Double bloodPressure;


  @ApiModelProperty(value = "血压表现")
  private String bloodPressureExpre;

  @ApiModelProperty(value = "膳食")
  @NotNull(message = "膳食不能为空")
  private Double food;

  @ApiModelProperty(value = "膳食表现")
  private String foodExpre;

  @ApiModelProperty(value = "最后更新时间")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date lastUpdate;

  @ApiModelProperty(value = "残疾人id")
  @NotNull(message = "残疾人编号不能为空")
  private Long handicappedId;

  @ApiModelProperty(value = "表现")
  private  String expression;

  @ApiModelProperty(value = "得分")
  private  Integer score;


}
